<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增Token')" />
	<th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-token-add">
			<div class="col-md-12">
				<div class="form-group">
					<label class="col-sm-3 control-label">应用编号：</label>
					<div class="col-sm-9">
						<input type="text" id="appId" name="appId" class="form-control" required placeholder="请输入文本">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">备注：</label>
					<div class="col-sm-9">
						<textarea type="text" id="remark" name="remark" class="form-control" placeholder="请输入备注"></textarea>
					</div>
				</div>
			</div>
		</form>
	</div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: summernote-js" />
    <script type="text/javascript">
        var prefix = ctx + "leaf/token";

	    $('.summernote').summernote({
	    	placeholder: '请输入内容',
			height : 192,
			lang : 'zh-CN',
			followingToolbar: false,
			callbacks: {
            }
		});
		
		$("#form-token-add").validate({
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
				$.operate.save(prefix + "/add", $('#form-token-add').serialize());
	        }
	    }
	</script>
</body>
</html>
